﻿using System.Collections;
using System.Collections.Generic;
using TK.Character;
using UnityEngine;
namespace TK.Modifier
{
/// <summary>
///  buff基类
/// </summary>
public class Buff
{
        /// <summary>
        ///  buff的修改器
        /// </summary>
        public List<Modifier> ModifierList = new List<Modifier>();
        public int ID { get; }
        public Unit Owner { get; }

        public virtual void OnInit()
        {
            ModifierList.ForEach(modifier => modifier.OnInit());
        }
        public Buff(int id,Unit owner)
        {
            ID = id;
            Owner = owner;
        }
}
}

